<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>后台登陆</title>
		<link href="../Public/css/index.css" type="text/css" rel="stylesheet"/>
		<script Language="JavaScript" src="../Public/js/md5.js"> </script>
		<script type="text/javascript">
			function login() {
				var name = document.getElementById('id_name');
				var psw = document.getElementById('id_psw');
				if (name.value.length == 0) {
					document.getElementById('id_p_error').innerHTML = "用户名不可为空！";
					return false;
				}
				if (psw.value.length == 0) {
					document.getElementById('id_p_error').innerHTML = "密码不可为空！";
					return false;
				}
				document.getElementById('id_true_psw').value = md5(psw.value);
				document.getElementById('id_login_form').submit();
				return true;
			}

			function rememberPassword() {
				//待添加

			}			
		</script>
	</head>
	<body id="login_bg">
		<div id="top">
			<ul class="name"><img src="../Public/images/login_name.gif">
			</ul>
		</div>
		<div id="box">
			<div class="login">
				<div class="left"><img src="../Public/images/l_top.gif" width="514" height="5">
				</div>
				<div class="l_title"><img src="../Public/images/t_name.gif" style="padding-left:90px;">
				</div>
				<div class="login_n">
					<form id="id_login_form" action="http://{$_SERVER['HTTP_HOST']}/index.php/User/userLogin" method="post">
						<p>
							<label>用户名：</label>
							<present name="name">
								<input id="id_name" name="name" type="text" class="input1" value="{$name}"/>
							<else/>
								<input id="id_name" name="name" type="text" class="input1" value="user1"/>
							</present>							
						</p>
						<p>
							<label>密&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
							<present name="psw">
								<input id="id_psw" name="psw" type="password" class="input1" value="{$psw}"/>
							<else/>
								<input id="id_psw" name="psw" type="password" class="input1" value="123456"/>
							</present>
							<input id="id_true_psw" name="true_psw" type="hidden"/>
						</p>
						<div class="botton">
							<span>
								<input name="" type="checkbox" class="input3" onClick="javascript:rememberPassword()" value="" checked="CHECKED"/>
								记住密码</span>
							<input type="image" name="imageField" id="imageField" src="../Public/images/input_bg2.gif" class="input2" onClick="javascript:return login()"/>
						</div>
					</form>
					<div class="left"><img src="../Public/images/line.gif">
					</div>
					<div><p id="id_p_error" class="p_error">
							<present name="errorMsg">
								{$errorMsg}
							<else/>
								为了您的密码安全最多允许登陆尝试次数为5次！
							</present>
							</p></div>
				</div>
			</div>
		</div>
	</body>
</html>
